package com.example.speeddating.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author tina
 * @since 2023-07-14 10:33:47
 */
@Getter
@Setter
public class Visitor implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 访客id
     */
    private Long visitorId;

    /**
     * 是否解锁访客
     */
    private Boolean saw;

    /**
     * 是否已读 默认0
     */
    private Boolean isRead;

    /**
     * 乐观锁
     */
    @Version
    private Integer version;
}
